/**
 * Created by cchen on 2015/5/19.
 */


'use strict';
angular.module('backofficeApp.reportManager.controller', []).
    controller('reportListCtrl', ['$scope','$http', function ($scope,$http) {
        $http.get("/rest/v1.0/backoffice/activity/reports")
            .success(function(res) {
                var html = "";
                for(var i = 0;i < res.data.length;i++){
                    html +="<li><span>"+ res.data[i].nickName +"</span><br><span>"+ res.data[i].desc +"</span></li>";
                }
                $("#report_list").html(html);
                //var is = new iScroll("reports", { "useTransition": true, "vScrollbar": false, "hScroll": false, "onScrollStart": function () {
                //    //scrollControl = true;
                //}});
                //is.refresh();
            });
    }]);